#ifndef THREAD_H
#define THREAD_H

#include <QWidget>
#include<QThread>
#include<QMutex>

class Thread : public QThread
{
    Q_OBJECT
public:
    Thread();

    //添加static成员
    static int num;
    //创建一个锁对象
     static QMutex mutex;

    void  run();
};

#endif // THREAD_H
